<template>
  <div>
    <div>菜单管理</div>

    <el-button type="primary" @click="open">打开抽屉</el-button>

    <drawer :is-open="isOpened" @hanldeclose="bbb"></drawer>
  </div>
</template>

<script>
import drawer from '@/components/Drawer'

export default {
  components: { drawer },
  data() {
    return {
      isOpened: false
    }
  },

  methods: {
    open() {
      this.isOpened = true
    },
    bbb(val) {
      this.isOpened = val
    }
  }
}
</script>

<style lang="less" scoped></style>
